import threading
import time
from DataBase import dataOperate


# import thread1_1
def linkIdthread(linkIdq):
    while True:
        linkId = linkIdq.get()
        print(f'接收到linkId:', linkId)


def getgps(gps_queue, linkIdq):
    linIdt = threading.Thread(target=linkIdthread, args=(linkIdq,))
    linIdt.start()
    while True:
        gpsdata = gps_queue.get()
        print(f'gps:', gpsdata)
